package com.api.user.service;
import com.api.user.model.CouponUser;
import com.api.core.service.Service;
import com.api.core.response.Result;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghuiwen on 2021/04/12.
 */
public interface CouponUserService extends Service<CouponUser> {
   Result list(String search, String order, Integer page, Integer size);
   List<CouponUser> getByCouponId(Long couponId);
   List<CouponUser> getByUserIdAndCouponId(Long userId,Long couponId);

    List<Map<String,Object>> getCouponByUserId(Long userId, String code, Map<String, Object> orderParams);
}
